package midend.IR_Type;

public class IR_Int32 implements IR_Type{
    //静态final 禁止修改
    private static final String Type_Name = "i32";
    private static IR_Int32 Int32_Type = new IR_Int32();
    private IR_Int32(){}
    //饿汉模式写法
    public static IR_Type IR_Int32(){
        return Int32_Type;
    }
    @Override
    public String get_TypeName() {
        return Type_Name;
    }
    @Override
    public int get_Const_Type() {
        return IR_Const.IR_ConstInt32;
    }

    @Override
    public String toString() {
        return "int32";
    }
}
